package com.example.yqand4v1_1.dao;

import com.example.yqand4v1_1.dao.entity.News;
import com.example.yqand4v1_1.dto.NewsSearchDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    List<News> search(@Param("search") NewsSearchDTO searchDTO);

    List<News> getByIds(@Param("ids") List<Integer> ids);

    News getById(@Param("id") int id);

    void addClickNum(@Param("id") int id);

    void addCommentNum(@Param("id") int id);

    void addLikeNum(@Param("id") int id);
}
